package com.aurora_manito.xiaomi.service;

import com.aurora_manito.xiaomi.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Aurora_Manito
 * @since 2020-05-27
 */
@Service
public interface AddressService extends IService<Address> {

    List<Address> findByUid(Integer id);

    int addAddress(Address address);

    int updatedefault(Integer userid, int addressid);

    int deleteAddress(int id);

    int updateAddress(Address address);
}
